package com.uppfind.framework.core.dao.mybatis.meta;

import java.sql.JDBCType;

/**
 * 数据库表Column元数据
 * Created by xuliugen on 2017/7/3.
 */
public class ColumnMetaData {

    /**
     * column 名称
     */
    protected String name;

    /**
     * column 别名
     */
    protected String alias;

    /**
     * 对应的Bean属性值名称
     */
    protected String property;
    /**
     * column 注释
     */
    protected String comment;
    protected Class javaType;
    protected TableMetaData tableMetaData;
    /**
     * 是否主键
     */
    private boolean primaryKey = false;
    private JDBCType jdbcType;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public boolean isPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(boolean primaryKey) {
        this.primaryKey = primaryKey;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public JDBCType getJdbcType() {
        return jdbcType;
    }

    public void setJdbcType(JDBCType jdbcType) {
        this.jdbcType = jdbcType;
    }

    public Class getJavaType() {
        return javaType;
    }

    public void setJavaType(Class javaType) {
        this.javaType = javaType;
    }

    public TableMetaData getTableMetaData() {
        return tableMetaData;
    }

    public void setTableMetaData(TableMetaData tableMetaData) {
        this.tableMetaData = tableMetaData;
    }
}
